class DictWrapper(dict):
    def __getattr__(self, key):
        if key in self:
            return self[key]
        else:
            raise AttributeError(f"'DictWrapper' object has no attribute '{key}'")

    def __setattr__(self, key, value):
        self[key] = value


ppo_params = DictWrapper({
    "ratio_clip": 0.25,
    "lambda_gae_adv": 0.95,
    "lambda_entropy": 0.01,
})

print(ppo_params.ratio_clip)
ppo_params.ratio_clip = 0.3
print(ppo_params.ratio_clip)
